// Control types
#define CT_STATIC 0
#define CT_BUTTON 1
#define CT_EDIT 2
#define CT_SLIDER 3
#define CT_COMBO 4
#define CT_LISTBOX 5
#define CT_TOOLBOX 6
#define CT_CHECKBOXES 7
#define CT_PROGRESS 8
#define CT_HTML 9
#define CT_STATIC_SKEW 10
#define CT_ACTIVETEXT 11
#define CT_TREE 12
#define CT_STRUCTURED_TEXT 13
#define CT_CONTEXT_MENU 14
#define CT_CONTROLS_GROUP 15
#define CT_SHORTCUT_BUTTON 16

// Arma 2 - textured button
#define CT_XKEYDESC 40
#define CT_XBUTTON 41
#define CT_XLISTBOX 42
#define CT_XSLIDER 43
#define CT_XCOMBO 44
#define CT_ANIMATED_TEXTURE 45
#define CT_OBJECT 80
#define CT_OBJECT_ZOOM 81
#define CT_OBJECT_CONTAINER 82
#define CT_OBJECT_CONT_ANIM 83
#define CT_LINEBREAK 98
#define CT_USER 99
#define CT_MAP 100
#define CT_MAP_MAIN 101
#define CT_List_N_Box 102

// Static styles
#define ST_POS 0x0F
#define ST_HPOS 0x03
#define ST_VPOS 0x0C
#define ST_LEFT 0x00
#define ST_RIGHT 0x01
#define ST_CENTER 0x02
#define ST_DOWN 0x04
#define ST_UP 0x08
#define ST_VCENTER 0x0c
#define ST_TYPE 0xF0
#define ST_SINGLE 0
#define ST_MULTI 16
#define ST_TITLE_BAR 32
#define ST_PICTURE 48
#define ST_FRAME 64
#define ST_BACKGROUND 80
#define ST_GROUP_BOX 96
#define ST_GROUP_BOX2 112
#define ST_HUD_BACKGROUND 128
#define ST_TILE_PICTURE 144
#define ST_WITH_RECT 160
#define ST_LINE 176
#define ST_SHADOW 0x100
#define ST_NO_RECT 0x200
#define ST_KEEP_ASPECT_RATIO 0x800
#define ST_TITLE ST_TITLE_BAR + ST_CENTER
#define COLOR_TRANSPARENT { 0, 0, 0, 0 } 
#define __X SafeZoneX
#define __Y SafeZoneY
#define __W SafeZoneW
#define __H SafeZoneH
#define __SX(var1) x = QUOTE((var1 * safeZoneW) + safeZoneX)
#define __SY(var1) y = QUOTE((var1 * safeZoneH) + safeZoneY)
#define __SW(var1) w = QUOTE(var1 * safeZoneW)
#define __SH(var1) h = QUOTE(var1 * safeZoneH)
 // Slider styles
#define SL_DIR 0x400
#define SL_VERT 0
#define SL_HORZ 0x400
#define SL_TEXTURES 0x10
 
 // Listbox styles
#define LB_TEXTURES 0x10
#define LB_MULTI 0x20
#define FontM "Zeppelin32"

#define true 1
#define false 0


class RscText
{
 access = 0;
 type = CT_STATIC;
 idc = -1;
 style = ST_LEFT;
 w = 0.1; h = 0.05;
 //x and y are not part of a global class since each rsctext will be positioned 'somewhere'
 font = "TahomaB";
 sizeEx = 0.04;
 colorBackground[] = {0,0,0,1};
 colorText[] = {1,1,1,1};
 text = "";
 fixedWidth = 0;
 shadow = 0;
};

class RscPicture
{
	access = 0;
	type = 0;
	idc = -1;
	style = 48;
	colorBackground[] = {0,0,0,0};
	colorText[] = {1,1,1,1};
	font = "TahomaB";
	sizeEx = 0;
	lineSpacing = 0;
	text = "";
	fixedWidth = 0;
	shadow = 0;
	x = 0;
	y = 0;
	w = 0.2;
	h = 0.15;
};

class RscShortcutButton
{
	type = 16;
	x = 0.1;
	y = 0.1;
	class HitZone
	{
		left = 0.004;
		top = 0.029;
		right = 0.004;
		bottom = 0.029;
	};
	class ShortcutPos
	{
		left = 0.0145;
		top = 0.026;
		w = 0.0392157;
		h = 0.0522876;
	};
	class TextPos
	{
		left = 0.05;
		top = 0.034;
		right = 0.005;
		bottom = 0.005;
	};
	shortcuts[] = {};
	textureNoShortcut = "#(argb,8,8,3)color(0,0,0,0)";
	color[] = {0.8784,0.8471,0.651,1};
	color2[] = {0.95,0.95,0.95,1};
	colorDisabled[] = {1,1,1,0.25};
	colorBackground[] = {1,1,1,1};
	colorBackground2[] = {1,1,1,0.4};
	class Attributes
	{
		font = "Zeppelin32";
		color = "#E5E5E5";
		align = "left";
		shadow = "true";
	};
	idc = -1;
	style = 0;
	default = 0;
	shadow = 2;
	w = 0.183825;
	h = 0.104575;
	periodFocus = 1.2;
	periodOver = 0.8;
	animTextureNormal = "\ca\ui\data\ui_button_normal_ca.paa";
	animTextureDisabled = "\ca\ui\data\ui_button_disabled_ca.paa";
	animTextureOver = "\ca\ui\data\ui_button_over_ca.paa";
	animTextureFocused = "\ca\ui\data\ui_button_focus_ca.paa";
	animTexturePressed = "\ca\ui\data\ui_button_down_ca.paa";
	animTextureDefault = "\ca\ui\data\ui_button_default_ca.paa";
	period = 0.4;
	font = "Zeppelin32";
	size = 0.03921;
	sizeEx = 0.03921;
	text = "";
	soundEnter[] = {"\ca\ui\data\sound\onover",0.09,1};
	soundPush[] = {"\ca\ui\data\sound\new1",0,0};
	soundClick[] = {"\ca\ui\data\sound\onclick",0.07,1};
	soundEscape[] = {"\ca\ui\data\sound\onescape",0.09,1};
	action = "";
	class AttributesImage
	{
		font = "Zeppelin32";
		color = "#E5E5E5";
		align = "left";
	};
};

class RscListBox
{
	access = 0;
	type = 5;
	w = 0.4;
	h = 0.4;
	rowHeight = 0;
	colorText[] = {0.8784,0.8471,0.651,1};
	colorScrollbar[] = {0.95,0.95,0.95,1};
	colorSelect[] = {0.95,0.95,0.95,1};
	colorSelect2[] = {0.95,0.95,0.95,1};
	colorSelectBackground[] = {0,0,0,1};
	colorSelectBackground2[] = {0.8784,0.8471,0.651,1};
	colorBackground[] = {0,0,1,1};
	soundSelect[] = {"",0.1,1};
	arrowEmpty = "#(argb,8,8,3)color(1,1,1,1)";
	arrowFull = "#(argb,8,8,3)color(1,1,1,1)";
	class ScrollBar
	{
		color[] = {1,1,1,0.6};
		colorActive[] = {1,1,1,1};
		colorDisabled[] = {1,1,1,0.3};
		shadow = 0;
		thumb = "\ca\ui\data\ui_scrollbar_thumb_ca.paa";
		arrowFull = "\ca\ui\data\ui_arrow_top_active_ca.paa";
		arrowEmpty = "\ca\ui\data\ui_arrow_top_ca.paa";
		border = "\ca\ui\data\ui_border_scroll_ca.paa";
	};
	style = 16;
	font = "Zeppelin32";
	shadow = 2;
	sizeEx = 0.05;
	color[] = {1,1,1,1};
	period = 1.2;
	maxHistoryDelay = 1;
	autoScrollSpeed = -1;
	autoScrollDelay = 5;
	autoScrollRewind = 0;
};

class LG_map // Map Tactique
{
 moveOnEdges = 0;
 x = "SafeZoneXAbs";
 y = "SafeZoneY";
 w = "SafeZoneWAbs";
 h = "SafeZoneH";
 shadow = 0;
 ptsPerSquareSea = 8;
 ptsPerSquareTxt = 10;
 ptsPerSquareCLn = 10;
 ptsPerSquareExp = 10;
 ptsPerSquareCost = 10;
 ptsPerSquareFor = "6.0f";
 ptsPerSquareForEdge = "15.0f";
 ptsPerSquareRoad = "3f";
 ptsPerSquareObj = 15;
 showCountourInterval = "false";
 maxSatelliteAlpha = 0;
 alphaFadeStartScale = 0.15;
 alphaFadeEndScale = 0.29;
 colorText[] = {0.00, 0.00, 0.00, 1.00};
 colorLevels[] = {0.65,0.6,0.45,1};
 colorSea[] = {0.46,0.65,0.74,0.5};
 colorForest[] = {0.45,0.64,0.33,0.5};
 colorRocks[] = {0,0,0,0.3};
 colorCountlines[] = {0.85,0.8,0.65,0};
 colorMainCountlines[] = {0,0,0,0};
 colorCountlinesWater[] = {0.25,0.4,0.5,0.3};
 colorMainCountlinesWater[] = {0.25,0.4,0.5,0.9};
 colorPowerLines[] = {0.1,0.1,0.1,1};
 colorRailWay[] = {0.8,0.2,0,1};
 colorForestBorder[] = {0,0,0,0};
 colorRocksBorder[] = {0,0,0,0};
 colorNames[] = {0.1,0.1,0.1,0.9};
 colorInactive[] = {1,1,1,0.5};
 colorOutside[] = {0,0,0,1};
 fontLabel = "Zeppelin32";
 sizeExLabel = 0.034;
 fontGrid = "Zeppelin32";
 sizeExGrid = 0.05;
 fontUnits = "Zeppelin32";
 sizeExUnits = 0.034;
 fontNames = "Zeppelin32";
 sizeExNames = 0.056;
 fontInfo = "Zeppelin32";
 sizeExInfo = 0.034;
 fontLevel = "Zeppelin32";
 sizeExLevel = 0;
 text = "\ca\ui\data\map_background2_co.paa";
 class Task
 {
  icon = "\ca\ui\data\ui_taskstate_current_CA.paa";
  iconCreated = "\ca\ui\data\ui_taskstate_new_CA.paa";
  iconCanceled = "#(argb,8,8,3)color(0,0,0,0)";
  iconDone = "\ca\ui\data\ui_taskstate_done_CA.paa";
  iconFailed = "\ca\ui\data\ui_taskstate_failed_CA.paa";
  color[] = {0.863,0.584,0.0,1};
  colorCreated[] = {0.95,0.95,0.95,1};
  colorCanceled[] = {0.606,0.606,0.606,1};
  colorDone[] = {0.424,0.651,0.247,1};
  colorFailed[] = {0.706,0.0745,0.0196,1};
  size = 27;
  importance = 1;
  coefMin = 1;
  coefMax = 1;
 };
 class CustomMark
 {
  icon = "\ca\ui\data\map_waypoint_ca.paa";
  color[] = {0.6471,0.6706,0.6235,1.0};
  size = 18;
  importance = 1;
  coefMin = 1;
  coefMax = 1;
 };
 class Legend
 {
  x = "SafeZoneX";
  y = "SafeZoneY";
  w = 0.34;
  h = 0.152;
  font = "Zeppelin32";
  sizeEx = 0.03921;
  colorBackground[] = {0.906,0.901,0.88,0};
  color[] = {0,0,0,1};
 };
 class Bunker
 {
  icon = "\ca\ui\data\map_bunker_ca.paa";
  size = 14;
  color[] = {0,0,0,1};
  importance = "1.5 * 14 * 0.05";
  coefMin = 0.25;
  coefMax = 4;
 };
 class Bush
 {
  icon = "\ca\ui\data\map_bush_ca.paa";
  color[] = {0.45,0.64,0.33,0};
  size = 14;
  importance = "0.2 * 14 * 0.05";
  coefMin = 0.25;
  coefMax = 4;
 };
 class BusStop
 {
  icon = "\ca\ui\data\map_busstop_ca.paa";
  color[] = {0.15,0.26,0.87,1};
  size = 12;
  importance = "1 * 10 * 0.05";
  coefMin = 0.25;
  coefMax = 4;
 };
 class Command
 {
  icon = "\ca\ui\data\map_waypoint_ca.paa";
  color[] = {0,0.9,0,1};
  size = 18;
  importance = 1;
  coefMin = 1;
  coefMax = 1;
 };
 class Cross
 {
  icon = "\ca\ui\data\map_cross_ca.paa";
  size = 16;
  color[] = {0,0.9,0,1};
  importance = "0.7 * 16 * 0.05";
  coefMin = 0.25;
  coefMax = 4;
 };
 class Fortress
 {
  icon = "\ca\ui\data\map_bunker_ca.paa";
  size = 16;
  color[] = {0,0.9,0,1};
  importance = "2 * 16 * 0.05";
  coefMin = 0.25;
  coefMax = 4;
 };
 class Fuelstation
 {
  icon = "\ca\ui\data\map_fuelstation_ca.paa";
  size = 16;
  color[] = {0,0.9,0,1};
  importance = "2 * 16 * 0.05";
  coefMin = 0.75;
  coefMax = 4;
 };
 class Fountain
 {
  icon = "\ca\ui\data\map_fountain_ca.paa";
  color[] = {0.2,0.45,0.7,1};
  size = 11;
  importance = "1 * 12 * 0.05";
  coefMin = 0.25;
  coefMax = 4;
 };
 class Hospital
 {
  icon = "\ca\ui\data\map_hospital_ca.paa";
  color[] = {0.78,0,0.05,1};
  size = 16;
  importance = "2 * 16 * 0.05";
  coefMin = 0.5;
  coefMax = 4;
 };
 class Chapel
 {
  icon = "\ca\ui\data\map_chapel_ca.paa";
  size = 16;
  importance = "1 * 16 * 0.05";
  coefMin = 0.9;
  coefMax = 4;
  color[] = {0,0,0,1};
 };
 class Church
 {
  icon = "\ca\ui\data\map_church_ca.paa";
  size = 16;
  color[] = {0,0.9,0,1};
  importance = "2 * 16 * 0.05";
  coefMin = 0.9;
  coefMax = 4;
 };
 class Lighthouse
 {
  icon = "\ca\ui\data\map_lighthouse_ca.paa";
  size = 14;
  color[] = {0,0.9,0,1};
  importance = "3 * 16 * 0.05";
  coefMin = 0.9;
  coefMax = 4;
 };
 class Quay
 {
  icon = "\ca\ui\data\map_quay_ca.paa";
  size = 16;
  color[] = {0,0.9,0,1};
  importance = "2 * 16 * 0.05";
  coefMin = 0.5;
  coefMax = 4;
 };
 class Rock
 {
  icon = "\ca\ui\data\map_rock_ca.paa";
  color[] = {0.1,0.1,0.1,0.8};
  size = 12;
  importance = "0.5 * 12 * 0.05";
  coefMin = 0.25;
  coefMax = 4;
 };
 class Ruin
 {
  icon = "\ca\ui\data\map_ruin_ca.paa";
  size = 16;
  color[] = {0,0.9,0,1};
  importance = "1.2 * 16 * 0.05";
  coefMin = 1;
  coefMax = 4;
 };
 class SmallTree
 {
  icon = "\ca\ui\data\map_smalltree_ca.paa";
  color[] = {0.45,0.64,0.33,0};
  size = 12;
  importance = "0.6 * 12 * 0.05";
  coefMin = 0.25;
  coefMax = 4;
 };
 class Stack
 {
  icon = "\ca\ui\data\map_stack_ca.paa";
  size = 20;
  color[] = {0,0.9,0,1};
  importance = "2 * 16 * 0.05";
  coefMin = 0.9;
  coefMax = 4;
 };
 class Tree
 {
  icon = "\ca\ui\data\map_tree_ca.paa";
  color[] = {0.45,0.64,0.33,0};
  size = 12;
  importance = "0.9 * 16 * 0.05";
  coefMin = 0.25;
  coefMax = 4;
 };
 class Tourism
 {
  icon = "\ca\ui\data\map_tourism_ca.paa";
  size = 16;
  importance = "1 * 16 * 0.05";
  coefMin = 0.7;
  coefMax = 4;
  color[] = {0,0,0,1};
 };
 class Transmitter
 {
  icon = "\ca\ui\data\map_transmitter_ca.paa";
  color[] = {0,0.9,0,1};
  size = 20;
  importance = "2 * 16 * 0.05";
  coefMin = 0.9;
  coefMax = 4;
 };
 class ViewTower
 {
  icon = "\ca\ui\data\map_viewtower_ca.paa";
  color[] = {0,0.9,0,1};
  size = 16;
  importance = "2.5 * 16 * 0.05";
  coefMin = 0.5;
  coefMax = 4;
 };
 class Watertower
 {
  icon = "\ca\ui\data\map_watertower_ca.paa";
  color[] = {0.2,0.45,0.7,1};
  size = 20;
  importance = "1.2 * 16 * 0.05";
  coefMin = 0.9;
  coefMax = 4;
 };
 class Waypoint
 {
  icon = "\ca\ui\data\map_waypoint_ca.paa";
  color[] = {0.00, 0.00, 0.00, 1.00};
  size = 24;
  importance = 1.00;
  coefMin = 1.00;
  coefMax = 1.00;
 };
 class WaypointCompleted
 {
  icon = "\ca\ui\data\map_waypoint_completed_ca.paa";
  color[] = {0.00, 0.00, 0.00, 1.00};
  size = 24;
  importance = 1.00;
  coefMin = 1.00;
  coefMax = 1.00;
 };
}; 

class RscTitles // Display !
{
	titles[] = {empty, lg_ui_ir, lg_ui_ds};
	
	
	class empty
	{
		idd = -1
		movingEnable = false;
		duration = 3;
		name = "empty";
		controls[] = {"vide"};
		
		class vide: RscText
		{
			idc = -1;
			text = "";
			x = safezoneX;
			y = safezoneY;
			w = safezoneW;
			h = safezoneH;
			style = ST_CENTER;
			colorBackground[] = {0,0,0,0};
		};
	};
	
	class lg_ui_ir 
	{
		idd = -1
		onLoad = "m_icon = (_this select 0)";
		movingEnable = false;
		duration = 600;
		name = "lg_ui_ir";
		controls[] = {"ui_icon_rally"};
	
			class ui_icon_rally: RscPicture
			{
				idc = 201421;
				text = "picture\icon\icon_rally.paa";
				x = 0.90625 * safezoneW + safezoneX;
				y = 0.85 * safezoneH + safezoneY;
				w = 0.0625 * safezoneW;
				h = 0.1 * safezoneH;
			};
	};
	
	class lg_ui_ds // Death Screen
	{
	idd = -1
	onLoad = uiNamespace setVariable ["ui_ds", _this select 0];
	movingEnable = false;
	duration = 600;
	name = "lg_ui_ds";
	controls[] = {"ui_ds", "custom_text", "att_back", "def_back", "att_flag", "def_flag"};
	
			
		class ui_ds: RscPicture
		{
			idc = 201431;
			text = "picture\ds_bahad.paa";
			x = safezoneX;
			y = safezoneY;
			w = safezoneW;
			h = safezoneH;
		};
		
		class custom_text: RscText
		{
			idc = 201432;
			text = "";
			x = safezoneX;
			y = 0.6 * safezoneH + safezoneY;
			w = safezoneW;
			h = 0.05 * safezoneH;
			style = ST_CENTER;
			colorBackground[] = {0,0,0,0};
		};
		
		class att_back: RscPicture
		{
			idc = 201433;
			text = "";
			x = 0.15625 * safezoneW + safezoneX;
			y = 0.5 * safezoneH + safezoneY;
			w = 0.15625 * safezoneW;
			h = 0.25 * safezoneH;
		};
		
		class def_back: RscPicture
		{
			idc = 201434;
			text = "";
			x = 0.6875 * safezoneW + safezoneX;
			y = 0.5 * safezoneH + safezoneY;
			w = 0.15625 * safezoneW;
			h = 0.25 * safezoneH;
		};
		
		class att_flag: RscPicture
		{
			idc = 201435;
			text = "";
			x = 0.15625 * safezoneW + safezoneX;
			y = 0.5 * safezoneH + safezoneY;
			w = 0.15625 * safezoneW;
			h = 0.25 * safezoneH;
		};
		
		class def_flag: RscPicture
		{
			idc = 201436;
			text = "";
			x = 0.6875 * safezoneW + safezoneX;
			y = 0.5 * safezoneH + safezoneY;
			w = 0.15625 * safezoneW;
			h = 0.25 * safezoneH;
		};
		
		
	};
	
};